package com.itheima.ydd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.ydd.dto.TopData;
import com.itheima.ydd.entity.Article;

import java.util.HashMap;

/**
 * 文章表 服务类
 */
public interface ArticleService extends IService<Article> {
    HashMap<String, Object> getPageHashMap(String start_time, String end_time, String title, String cateid, Integer page, Integer limit);

    TopData getTopData(Integer page, Integer limit);

    /**
     * 获取侧边最新文章
     *
     * @return
     */
    HashMap<String, Object> getHot();

    /**
     * 侧边推荐文章
     *
     * @return
     */
    HashMap<String, Object> getRecommend();

    /***
     * Desc: 返回文章详情数据
     * @param id
     * @return {@link HashMap< String, Object>}
     * @author Cr Mr
     * @date 2022/3/3 13:26
     */
    HashMap<String, Object> show(Integer id);

}
